package com.daro.ddlaunch.service;

import com.daro.ddlaunch.dao.LauncheventMapper;
import com.daro.ddlaunch.pojo.Launchevent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndexService {

    @Autowired
    private LauncheventMapper launcheventMapper;

    public Integer insertLaunchevent(Launchevent launchevent) {
        Integer launchid = launcheventMapper.insertLaunchevent(launchevent);
        return launchid;
    }

    public void UpdateLaunchsuccessfully(String targetlocation, String temperature, String speed,Object launchid) {
        launcheventMapper.UpdateLaunchsuccessfully(targetlocation,temperature,speed,launchid);
    }
}